package com.heer.gymnasium.activity;

import android.app.Activity;
import android.content.Intent;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.heer.gymnasium.R;

import butterknife.BindView;

/**
 * Created by admin on 2017/8/3.
 */

public class WebAcativity extends BaseActivity {

    @BindView(R.id.wv_web)
    WebView wv_web;

    @Override
    protected void init() {
        super.init();
        setContentView(R.layout.activity_web);
    }

    @Override
    protected void initView() {
        super.initView();


        WebSettings webSettings = wv_web.getSettings();
        webSettings.setJavaScriptEnabled(true);
        wv_web.loadUrl(getIntent().getStringExtra("url"));

    }

    public static void StartWeb(Activity activity, String url)
    {
        Intent intent=new Intent(activity,WebAcativity.class);
        intent.putExtra("url", url);
        activity.startActivity(intent);

    }


}
